package com.qf.j2105.controller;

import com.qf.j2105.po.Gzycpo;
import com.qf.j2105.service.GzycService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class GzycController {
    @Autowired(required = true)
    GzycService gzycService;
    @GetMapping("/gzycgo")

    public List<Gzycpo> selectallgz(){
        List<Gzycpo> selectall = gzycService.selectall();
        System.out.println("nihao :"+selectall);
        return selectall;
    }
}
